<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        img{
            width: 250px;
            /* 谁过度给谁加 */
            transition: all .5s;

        }
        img:hover{
            transform: rotate(360deg);
        }
        div{
            width: 200px;
            height: 200px;
            background-color: pink;
            transition: all .5s;
        }
        div:hover{
            border-radius: 50%;
            transform: rotate(360deg);
        }

    </style>
</head>
<body>
    <!-- rotate旋转效果 -->
    <img src="./images/rotate.png" alt="">
    <div></div>
</body>
</html>